<?php

namespace App\Http\Controllers\Index;

use App\Http\Controllers\Controller;
use App\Models\Works\ArticleModel;
use Illuminate\Http\Request;

class ArticleController extends Controller
{
    public function Index(Request $request)
    {
        $id = $request->input('articleid');
        $article_info = ArticleModel::where("id",$id)
            ->first();

        return view("article.index",['articles' => $article_info]);
    }
}